package com.gofruit.bean;

import java.util.Date;

/**
 * 
 * @author 陈瑶
 * @see 产品实体。
 *
 */
public class Product {
	
	private int productId;//产品编号
	//private int catagoryId;
	private int adminId;//管理员编号。有可能有几个管理员，或者几种管理员。哪个管理员上架的这种产品
	private String productName;//产品名
	private String productTag;//产品标签
	private Double productPrice;//产品价格
	private Double productMarket;//产品市场价
	private Double productMember;//产品会员价
	private int productStock;//产品库存
	private int productSaleNum;//产品销售数目
	private int productClickNum;//产品点击数目
	private String productLogoLoaction;//产品Logo地址
	private int isSpecial;//产品是否特价
	private int isDiscount;//产品是否折扣
	private Double productDiscount;//产品多少折
	private int isUpOrDown;//产品上架或者下架
	private int isHot;//是否热门产品
	private int isRecommend;//是否推荐产品
	private String productAttribute;//产品属性。这里我建议所有属性单独做一个大表。不过只针对水果和小吃，没什么必要
	private String productColor;//产品颜色属性
	private String productSize;//产品大小
	private int isPack;//产品是否打包
	private String procuctDetail;//产品描述
	private String keywords;//产品搜索关键字
	private Date upTime;//产品上架时间
	//与Catagory，多对一关系
	private Category catagory;
	
	public int getProductId() {
		return productId;
	}
	public void setProductId(int productId) {
		this.productId = productId;
	}
	/*public int getCatagoryId() {
		return catagoryId;
	}
	public void setCatagoryId(int catagoryId) {
		this.catagoryId = catagoryId;
	}*/
	public int getAdminId() {
		return adminId;
	}
	public void setAdminId(int adminId) {
		this.adminId = adminId;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public String getProductTag() {
		return productTag;
	}
	public void setProductTag(String productTag) {
		this.productTag = productTag;
	}
	public Double getProductPrice() {
		return productPrice;
	}
	public void setProductPrice(Double productPrice) {
		this.productPrice = productPrice;
	}
	public Double getProductMarket() {
		return productMarket;
	}
	public void setProductMarket(Double productMarket) {
		this.productMarket = productMarket;
	}
	public Double getProductMember() {
		return productMember;
	}
	public void setProductMember(Double productMember) {
		this.productMember = productMember;
	}
	public int getProductStock() {
		return productStock;
	}
	public void setProductStock(int productStock) {
		this.productStock = productStock;
	}
	public int getProductSaleNum() {
		return productSaleNum;
	}
	public void setProductSaleNum(int productSaleNum) {
		this.productSaleNum = productSaleNum;
	}
	public int getProductClickNum() {
		return productClickNum;
	}
	public void setProductClickNum(int productClickNum) {
		this.productClickNum = productClickNum;
	}
	public String getProductLogoLoaction() {
		return productLogoLoaction;
	}
	public void setProductLogoLoaction(String productLogoLoaction) {
		this.productLogoLoaction = productLogoLoaction;
	}
	public int getIsSpecial() {
		return isSpecial;
	}
	public void setIsSpecial(int isSpecial) {
		this.isSpecial = isSpecial;
	}
	public int getIsDiscount() {
		return isDiscount;
	}
	public void setIsDiscount(int isDiscount) {
		this.isDiscount = isDiscount;
	}
	public Double getProductDiscount() {
		return productDiscount;
	}
	public void setProductDiscount(Double productDiscount) {
		this.productDiscount = productDiscount;
	}
	public int getIsUpOrDown() {
		return isUpOrDown;
	}
	public void setIsUpOrDown(int isUpOrDown) {
		this.isUpOrDown = isUpOrDown;
	}
	public int getIsHot() {
		return isHot;
	}
	public void setIsHot(int isHot) {
		this.isHot = isHot;
	}
	public int getIsRecommend() {
		return isRecommend;
	}
	public void setIsRecommend(int isRecommend) {
		this.isRecommend = isRecommend;
	}
	public String getProductAttribute() {
		return productAttribute;
	}
	public void setProductAttribute(String productAttribute) {
		this.productAttribute = productAttribute;
	}
	public String getProductColor() {
		return productColor;
	}
	public void setProductColor(String productColor) {
		this.productColor = productColor;
	}
	public String getProductSize() {
		return productSize;
	}
	public void setProductSize(String productSize) {
		this.productSize = productSize;
	}
	public int getIsPack() {
		return isPack;
	}
	public void setIsPack(int isPack) {
		this.isPack = isPack;
	}
	public String getProcuctDetail() {
		return procuctDetail;
	}
	public void setProcuctDetail(String procuctDetail) {
		this.procuctDetail = procuctDetail;
	}
	public String getKeywords() {
		return keywords;
	}
	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}
	public Date getUpTime() {
		return upTime;
	}
	public void setUpTime(Date upTime) {
		this.upTime = upTime;
	}
	public void setCatagory(Category catagory) {
		this.catagory = catagory;
	}
	public Category getCatagory() {
		return catagory;
	}
	public Product(int productId, int adminId,
			String productName, String productTag, Double productPrice,
			Double productMarket, Double productMember, int productStock,
			int productSaleNum, int productClickNum,
			String productLogoLoaction, int isSpecial, int isDiscount,
			Double productDiscount, int isUpOrDown, int isHot, int isRecommend,
			String productAttribute, String productColor, String productSize,
			int isPack, String procuctDetail, String keywords, Date upTime) {
		super();
		this.productId = productId;
		//this.catagoryId = catagoryId;
		this.adminId = adminId;
		this.productName = productName;
		this.productTag = productTag;
		this.productPrice = productPrice;
		this.productMarket = productMarket;
		this.productMember = productMember;
		this.productStock = productStock;
		this.productSaleNum = productSaleNum;
		this.productClickNum = productClickNum;
		this.productLogoLoaction = productLogoLoaction;
		this.isSpecial = isSpecial;
		this.isDiscount = isDiscount;
		this.productDiscount = productDiscount;
		this.isUpOrDown = isUpOrDown;
		this.isHot = isHot;
		this.isRecommend = isRecommend;
		this.productAttribute = productAttribute;
		this.productColor = productColor;
		this.productSize = productSize;
		this.isPack = isPack;
		this.procuctDetail = procuctDetail;
		this.keywords = keywords;
		this.upTime = upTime;
	}
	public Product() {
		super();
	}
	
	
	
}
